package com.xjy.rpc.netty.message;
/**
 * @description: TODO rpc消息体
 * @author XJY
 * @date 2024/9/29 14:43
 * @version 1.0
 */
public class RpcRequest extends AbstractMessageBody{

    //目标ip
    private String ip;
    //目标端口号
    private int port;
    //唯一请求id
    private long requestId;
    //接口名
    private String interfaceName;
    //方法名
    private String methodName;
    //方法返回值类型
    private String methodResponseType;

    public RpcRequest(){}


    public RpcRequest(String ip, int port, long requestId,String interfaceName, String methodName, String methodResponseType) {
        this.ip = ip;
        this.port = port;
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.methodResponseType = methodResponseType;
        this.requestId = requestId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodResponseType() {
        return methodResponseType;
    }

    public void setMethodResponseType(String methodResponseType) {
        this.methodResponseType = methodResponseType;
    }

    public long getRequestId() {
        return requestId;
    }

    public void setRequestId(long requestId) {
        this.requestId = requestId;
    }

    @Override
    public Object getResult() {
        return null;
    }
}
